package org.csmz.class2333;
class Animal{
    private String name;
    private int age;
    public Animal(String name, int age){
        this.name = name;
        this.age = age;
    }

    public Animal() {

    }

    public String getName(){
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public String info(){
        return "名称：" +this.getName()+",年龄："+this.getAge();
    }
}
public class Exampel06 {
    public static void main(String args[]){
    }
}
